import request from '@/utils/request'

export function getTree(data: any) {
  return request({
    url: '/Base_Roles/TreeJson',
    method: 'post',
    data,
  })
}

export function getDepartmentTree(data: any) {
  return request({
    url: '/Base_Roles/DepartmentTreeJson',
    method: 'post',
    data,
  })
}
export function getList(data: any) {
  return request({
    url: '/Base_Roles/GetPageData',
    method: 'post',
    data,
  })
}
export function getListJson(data: any) {
  return request({
    url: '/Base_Roles/GetListJson',
    method: 'post',
    data,
  })
}
export function getMemberList(data: any) {
  return request({
    url: '/Base_Roles/memberList',
    method: 'post',
    data,
  })
}
export function setAuthorizedMember(data: any) {
  return request({
    url: '/Base_Roles/AuthorizedMember',
    method: 'post',
    data,
  })
}
export function getModuleTree(data: any) {
  return request({
    url: '/Base_Roles/ModuleTree',
    method: 'post',
    data,
  })
}
export function getButtoneList(data: any) {
  return request({
    url: '/Base_Roles/ButtoneList',
    method: 'post',
    data,
  })
}
export function getButton(data: any) {
  return request({
    url: '/Base_Roles/GetButton',
    method: 'post',
    data,
  })
}
export function getUser(data: any) {
  return request({
    url: '/Base_Roles/GetUser',
    method: 'post',
    data,
  })
}
export function setAuthorizedSubmit(data: any) {
  return request({
    url: '/Base_Roles/AuthorizedSubmit',
    method: 'post',
    data,
  })
}
export function saveRoles(data: any) {
  return request({
    url: '/Base_Roles/saveRoles',
    method: 'post',
    data,
  })
}
export function getRolesInfo(data: any) {
  return request({
    url: '/Base_Roles/GetRolesInfo',
    method: 'post',
    data,
  })
}
export function delRoles(data: any) {
  return request({
    url: '/Base_Roles/DelRoles',
    method: 'post',
    data,
  })
}
export function getPageData(data: any) {
  return request({
    url: '/Base_Roles/GetPageData',
    method: 'post',
    data,
  })
}
